package io.gitee.tziye.core.search;

import io.gitee.tziye.common.RenaiUtil;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class RenaiText {

    private long id;
    private String module;
    private String businessId;
    private String content;
    private double score;

    public <T> RenaiText(String module, String businessId, T value) {
        this.module = module;
        this.businessId = businessId;
        this.content = RenaiUtil.string(value);
    }

    public <T> RenaiText(String businessId, T value) {
        this.businessId = businessId;
        this.content = RenaiUtil.string(value);
    }
    
}